package v1

import (
	"gitee.com/pangxianfei/framework/http/controller"
	"gitee.com/pangxianfei/library/response"
	"gitee.com/pangxianfei/multiapp/requests"
)

type RegisterController struct {
	controller.BaseController
}

// PostRegister 注册租户及用户帐号
func (this *RegisterController) PostRegister() *response.JsonResult {
	var UserRegister requests.UserRegister
	if err := this.Context.ReadJSON(&UserRegister); err != nil {
		return this.JsonErrorMsg(err.Error())
	}
	return this.JsonData(UserRegister)
}
func (this *RegisterController) PostRegisterTest() *response.JsonResult {
	var UserRegister requests.UserRegister

	if err := this.Context.ReadJSON(&UserRegister); err != nil {
		return response.JsonErrorMsg(err.Error())
	}
	return this.JsonCreateSucces(UserRegister)
}
